using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace HomeCare.Web.Staff
{
    public partial class Show : System.Web.UI.Page
    {        
        		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					string id = Request.Params["id"];
					//ShowInfo(id);
				}
			}
		}
		
	private void ShowInfo(int id)
	{
		HomeCare.BLL.Staff bll=new HomeCare.BLL.Staff();
		HomeCare.Model.Staff model=bll.GetModel(id);
		this.lblName.Text=model.Name;
		this.lblServiceID.Text=model.ServiceID.ToString();
		this.chkEnable.Checked=model.Enable;
		this.lblIdentityNo.Text=model.IdentityNo;
		this.lblAddressLine1.Text=model.AddressLine1;
		this.lblAddressLine2.Text=model.AddressLine2;
		this.lblZipCode.Text=model.ZipCode;
		this.lblHomePhone.Text=model.HomePhone;
		this.lblCellPhone.Text=model.CellPhone;
		this.lblRemark.Text=model.Remark;

	}


    }
}
